﻿<ResourceDictionary
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"         
        xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
        xmlns:Primitives="clr-namespace:Microsoft.Phone.Controls.Primitives;assembly=Microsoft.Phone"
        mc:Ignorable="d">
  
        <Style TargetType="ListBox" x:Key="FrozenListBox">
                <Setter  Property="Template">
                        <Setter.Value>
                                <ControlTemplate TargetType="ListBox">
                                        <ItemsPresenter/>
                                </ControlTemplate>
                        </Setter.Value>
                </Setter>
                <Setter Property="ItemContainerStyle">
                        <Setter.Value>
                                <Style TargetType="ListBoxItem">
                                        <Setter Property="Template">
                                                <Setter.Value>
                                                        <ControlTemplate TargetType="ListBoxItem">
                                                                <ContentPresenter HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Content="{TemplateBinding Property=Content}" ContentTemplate="{TemplateBinding Property=ContentTemplate}"/>
                                                        </ControlTemplate>
                                                </Setter.Value>
                                        </Setter>
                                </Style>
                        </Setter.Value>
                </Setter>
        </Style>
        
</ResourceDictionary>
